package com.hingstd.lastwork.services;

import com.hingstd.lastwork.dao.UserAccountRepository;
import com.hingstd.lastwork.entities.UserAccount;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserAccountService {
    @Autowired
    UserAccountRepository userAccountRepository;

    public UserAccount save(UserAccount userAccount){
        return userAccountRepository.save(userAccount);
    }
    public List<UserAccount> getAll(){
        return userAccountRepository.findAll();
    }
}
